<template>
    <div class="container">
        <p class="oneP">美辰金融保险行业营销优势</p>
        <p class="twoP" style="font-weight:100">提供便捷多样的产品和服务，打造品牌优势</p>
        <button class="oneButton" @click="toCreateAIPlan">一键生成方案</button>
        <ul class="ul1">
            <li v-for="(item,index) in arr1" :key="index"  @mouseover="show(index)">
                <div :class="{bg:index==liIndex,nobg:index!=liIndex}">
                    <img :src="item[0]" :class="{opa:liIndex==index}" height="220px" width="216px">
                   
                    <img :src="item[1]" style="margin-left:-13%;">
                     <img v-if="liIndex==index" src="../../assets/img/金融保险/美辰金融营销优势/66.png" alt="" class="matte">
                     <div :class="{initialmask: index!==liIndex}"></div>
                </div>
                <div :class="{border:index==liIndex}">
                    <img src="../../assets/img/1微信小程序/切图/9.png">
                    <p style="margin-top:10px;">{{item[2]}}</p>
                    <p style="margin-top:10px;marign-bottom:10px;">{{item[3]}}</p>
                </div>
            </li>
        </ul>
        <mask-toast v-if="showMaskToast" @closeMask="closeMask"></mask-toast>
    </div>
</template>
<script>
require("../../assets/css/p.css")
const img1 = require("../../assets/img/金融保险/美辰金融营销优势/56.png")
const img2 = require("../../assets/img/金融保险/美辰金融营销优势/57.png")
const img3 = require("../../assets/img/金融保险/美辰金融营销优势/58.png")
const img4 = require("../../assets/img/金融保险/美辰金融营销优势/59.png")
const img5 = require("../../assets/img/金融保险/美辰金融营销优势/60.png")
const img6 = require("../../assets/img/金融保险/美辰金融营销优势/61.png")
const img7 = require("../../assets/img/金融保险/美辰金融营销优势/62.png")
const img8 = require("../../assets/img/金融保险/美辰金融营销优势/65.png")
const img9 = require("../../assets/img/金融保险/美辰金融营销优势/63.png")
const img10 = require("../../assets/img/金融保险/美辰金融营销优势/64.png")
import maskToast from '../upgrade/upgradeToast'
export default {
    data(){
        return {
            arr1:[
                [img1,img6,"海量KOL、大号","媒体资源丰富"],
                [img2,img7,"覆盖超百亿流量","精准定位目标用户"],
                [img3,img8,"智能数字化","整合投放"],
                [img4,img9,"结合市场动态、行业等","进行文案编辑"],
                [img5,img10,"数据追踪","CRM系统实时反馈"]
            ],
            liIndex:0,
            debug: true,
            showMaskToast: false
        }
    },
    methods:{
        show(index){
            this.liIndex = index
        },
        toCreateAIPlan(){
            if(this.debug){
                this.showMaskToast = true
                return
            }
            this.$router.push({path:'/createAIPlan'})
        },
        closeMask(data){
            this.showMaskToast = data
        }
    },
    components: {
        maskToast
    }
}
</script>
<style scoped>
.container{
    width:1200px;
    margin: 0 auto;
    margin-top: 80px;
    overflow: hidden;
    text-align: center;
    /* margin-bottom:50px; */
    margin-bottom:80px;
}
.ul1{
    overflow: hidden;
    margin-top: 60px;
    padding:7px;
}
.ul1>li{
    /* 216*5 1080 */
    width:216px;
    height: 322px;
    margin-left:25px;
    text-align: center;
    float: left;
    position: relative;
     box-shadow: 2px 2px 16px #ebebeb;
}
.ul1>li:first-child{
    margin-left: 0;
}
.ul1>li>div:nth-child(1){
    height: 220px;
}
.ul1>li>div:nth-child(2){
    height: 102px;
}
.ul1>li>div:nth-child(1)>img:nth-child(2){
    position: absolute;
    z-index:3;
    top:80px;
}
.ul1>li>div:nth-child(1)>img:nth-child(1){
    position: absolute;
    left:0px;
    z-index:1;
    
}
.ul1>li>div:nth-child(2)>img:nth-child(1){
    margin-top: 20px;
    
}
.ul1>li>div:nth-child(2)>p:nth-child(2){
    /* margin-top: 10px; */
    font-size: 16px;
    color:rgb(34, 34, 34);
}
.ul1>li>div:nth-child(2)>p:nth-child(3){
    /* margin-top: 10px; */
    font-size: 16px;
    color:rgb(34, 34, 34);
}
/* .bg{
    background: url("../../assets/img/1微信小程序/切图/10.png");
} */
.border{
    border:1px solid red;
    border-top: none;
    height:150px;
}
.opa{
    opacity:0.8 ;
}
.oneButton{
    width: 140px;
    box-shadow: 0px 4px 19px #ed9191;
}
.matte{
    position:absolute;
    height:220px;
    width:216px;
    z-index:2;
    top:0px;
    left:0px;
}

.initialmask {
    position: absolute;
    background-color: #000;
    opacity: 0.6;
    left: 0;
    top: 0;
    right: 0;
    bottom: 102px;
    display:block;
    z-index: 2;
}
</style>